package com.weixin.service.impl;

import java.sql.SQLException;
import java.util.List;

import com.weixin.dao.Purchase_People_TbDAO;
import com.weixin.dao.impl.Purchase_People_TbDAOImpl;
import com.weixin.entity.Purchase_People_Tb;
import com.weixin.service.Purchase_People_TbService;

public class Purchase_People_TbServiceImpl implements Purchase_People_TbService {
	Purchase_People_TbDAO pd=new Purchase_People_TbDAOImpl();
	@Override
	public List<Purchase_People_Tb> selectAll() throws SQLException {
		// TODO Auto-generated method stub
		return pd.selectAll();
	}
	@Override
	public Purchase_People_Tb byId(int id) throws SQLException {
		// TODO Auto-generated method stub
		return pd.byId(id);
	}
	@Override
	public boolean insert(Purchase_People_Tb people) throws SQLException {
		// TODO Auto-generated method stub
		return pd.insert(people);
	}
	@Override
	public boolean delete(int id) throws SQLException {
		// TODO Auto-generated method stub
		return pd.delete(id);
	}

	@Override
	public boolean updateDelete(int id) throws SQLException {
		// TODO Auto-generated method stub
		return pd.updateDelete(id);
	}
	@Override
	public boolean update(Purchase_People_Tb people) throws SQLException {
		// TODO Auto-generated method stub
		return pd.update(people);
	}
	@Override
	public List<Purchase_People_Tb> listByPage(int pageSize, Integer pageNum) throws SQLException {
		// TODO Auto-generated method stub
		return pd.getAllBypage(pageSize, pageNum);
	}
	@Override
	public int getTotal() throws SQLException {
		// TODO Auto-generated method stub
		return pd.getTotal();
	}
	@Override
	public List<Purchase_People_Tb> listAllByRoleSearchPagination(String search, int pageSize, int pageNum)
			throws SQLException {
		// TODO Auto-generated method stub
		return pd.listAllByRoleSearchPagination(search, pageSize, pageNum);
	}
	@Override
	public List<Purchase_People_Tb> getTotalBySearch(String search) throws SQLException {
		// TODO Auto-generated method stub
		return pd.getTotalBySearch(search);
	}

}
